package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 文章对象 ls_lawyer_article
 *
 * @author zhouyipeng
 * @date 2023-10-16
 */
public class LsLawyerArticleContent
{
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    private String id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 类型类型 1、公司商事 2、婚姻家庭 3、法律法规 4、法律文书 5、经典案例 6 其他 */
    @Excel(name = "类型类型 1、公司商事 2、婚姻家庭 3、法律法规 4、法律文书 5、经典案例 6 其他")
    private int type;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 是否删除 （1：正常  2：删除） */
    @Excel(name = "是否删除 ", readConverterExp = "1=：正常,2=：删除")
    private Long isDel;

    //文章内容
    private String content;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setModifyTime(Date modifyTime)
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime()
    {
        return modifyTime;
    }

    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }

    public void setIsDel(Long isDel)
    {
        this.isDel = isDel;
    }

    public Long getIsDel()
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
